package com.xinli.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinli.common.annotation.Excel;
import com.xinli.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 订单评价对象 t_order_pj
 *
 * @author ruoyi
 * @date 2025-03-25
 */
@Data
@TableName(value = "t_order_pj")
@EqualsAndHashCode(callSuper = true)
public class TOrderPj extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * "订单Id"
     */
    @Excel(name = "订单Id")
    @NotBlank(message = "订单Id不能为空")
    private String orderId;

    /**
     * "订单编号"
     */
    @Excel(name = "订单编号")
    private String orderNo;

    /**
     * "评论内容"
     */
    @Excel(name = "评论内容")
    @NotBlank(message = "评论内容不能为空")
    @Size(min = 0, max = 200, message = "内容不能超过200个字符")
    private String content;

    /**
     * "用户Id"
     */
    @Excel(name = "用户Id")
    private String userId;

    /**
     * "咨询师Id"
     */
    @Excel(name = "咨询师Id")
    private String zxsId;



    /**
     * "状态"
     */
    @Excel(name = "状态")
    private String status;


    /**
     * "用户姓名"
     */
    @TableField(exist = false)
    private String  username;

    /**
     * "用户头像"
     */
    @TableField(exist = false)
    private String  useravatar;


    /**
     * "咨询师姓名"
     */
    @TableField(exist = false)
    private String  zxsname;


    /**
     * "咨询师头像"
     */
    @TableField(exist = false)
    private String  zxsavatar;


}
